<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title></title>
    {include file='header'}
</head>

<body>
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a>首页</a>
            <a href="{:url('site')}">微信配置</a>
        </span>
        <div style="float: right;">
            <a class="layui-btn layui-btn-small" href="javascript:location.replace(location.href);" title="刷新">
                <i class="layui-icon layui-icon-refresh-1"></i></a>
        </div>
    </div>
    <div class="x-body">
        <form data-auto="true" action="{:request()->url()}" method="post" class='layui-form' autocomplete="off">
              <div class="layui-form-item">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input name="memo" placeholder="公众号名称" value="{$config.memo}" class="layui-input">
                </div>
              </div>  
                <div class="layui-form-item">
                <label class="layui-form-label">appid</label><div class="layui-input-block">
                    <input name="appid" required placeholder="APPID" value="{$config.appid}"
                        class="layui-input">
                </div>
              </div>  
                <div class="layui-form-item">
                <label class="layui-form-label">appsecret</label><div class="layui-input-block">
                    <input name="appsecret" required placeholder="APPID密钥" value="{$config.appsecret}"
                        class="layui-input">
                </div>
</div> 
               <div class="layui-form-item">
                <label class="layui-form-label">mchid</label><div class="layui-input-block">
                    <input name="mchid" placeholder="商户ID" value="{$config.mchid}"
                        class="layui-input">
                </div>
</div>
                <div class="layui-form-item">
                <label class="layui-form-label">mchsecret</label><div class="layui-input-block">
                    <input name="mchsecret" placeholder="商户密钥" value="{$config.mchsecret}" class="layui-input">
                </div>
                </div>
                <div class="layui-form-item">
                <label class="layui-form-label"></label><div class="layui-input-block">
                    <button class="layui-btn" type="submit">保存配置</button>
                </div></div>  
        </form>
    </div>
</body>

</html>